package com.finalist.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import com.fasterxml.jackson.annotation.JsonProperty;
/**
 * 出发地
 *
 */
@Entity
@Table(name = "xx_departure")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_departure_sequence")
public class Departure extends BaseEntity {

	private static final long serialVersionUID = -2158109459123036967L;
	
	/** 名称 */
	private String name; 
	
	@NotEmpty
    @Length(max = 100)
    @Column(nullable = false, length = 100)
    @JsonProperty
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
